﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true" CodeFile="post-category-list.aspx.cs" Inherits="Admin_Forum_post_category_list"  %>


<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" Runat="Server">
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td style="height: 20px;">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="center" valign="top">
                <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
            </td>
        </tr>
         
        <tr>
            <td align="center" valign="top">
                <asp:GridView ID="grvPostCategory" runat="server" 
                    SkinID="GridView1" Width="60%">
                    <Columns>
                        <asp:BoundField DataField="CategoryName" HeaderText="Category Name" />
                        <asp:BoundField DataField="TotalPost" HeaderText="Total Post" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" />
                        
                        <asp:TemplateField HeaderText="IsActive" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsActive" runat="server" Checked='<%# Eval("IsActive") %>' /> 
                               </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField>
                            <ItemTemplate>
                               <a href="<%= BCGC.BLL.Helper.CustomSiteMap.EditPostCategory %>?id=<%#Eval("CategoryID") %>">
                                    View/Edit</a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lnbDelete" runat="server" CommandName="cmdDelete" CommandArgument='<%#Eval("CategoryID") %>'
                                    Text="Delete" OnClientClick="javascript:return confirm('are you sure, you want to delete?');"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>

